package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightOrderCashInfoMapper;
import com.ktgj.flight.domain.FlightOrderCashInfo;
import com.ktgj.flight.service.IFlightOrderCashInfoService;

/**
 * 订单支付信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightOrderCashInfoServiceImpl implements IFlightOrderCashInfoService 
{
    @Autowired
    private FlightOrderCashInfoMapper flightOrderCashInfoMapper;

    /**
     * 查询订单支付信息
     * 
     * @param cashinfoId 订单支付信息ID
     * @return 订单支付信息
     */
    @Override
    public FlightOrderCashInfo selectFlightOrderCashInfoById(Long cashinfoId)
    {
        return flightOrderCashInfoMapper.selectFlightOrderCashInfoById(cashinfoId);
    }

    /**
     * 查询订单支付信息列表
     * 
     * @param flightOrderCashInfo 订单支付信息
     * @return 订单支付信息
     */
    @Override
    public List<FlightOrderCashInfo> selectFlightOrderCashInfoList(FlightOrderCashInfo flightOrderCashInfo)
    {
        return flightOrderCashInfoMapper.selectFlightOrderCashInfoList(flightOrderCashInfo);
    }

    /**
     * 新增订单支付信息
     * 
     * @param flightOrderCashInfo 订单支付信息
     * @return 结果
     */
    @Override
    public int insertFlightOrderCashInfo(FlightOrderCashInfo flightOrderCashInfo)
    {
        return flightOrderCashInfoMapper.insertFlightOrderCashInfo(flightOrderCashInfo);
    }

    /**
     * 修改订单支付信息
     * 
     * @param flightOrderCashInfo 订单支付信息
     * @return 结果
     */
    @Override
    public int updateFlightOrderCashInfo(FlightOrderCashInfo flightOrderCashInfo)
    {
        return flightOrderCashInfoMapper.updateFlightOrderCashInfo(flightOrderCashInfo);
    }

    /**
     * 批量删除订单支付信息
     * 
     * @param cashinfoIds 需要删除的订单支付信息ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderCashInfoByIds(Long[] cashinfoIds)
    {
        return flightOrderCashInfoMapper.deleteFlightOrderCashInfoByIds(cashinfoIds);
    }

    /**
     * 删除订单支付信息信息
     * 
     * @param cashinfoId 订单支付信息ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderCashInfoById(Long cashinfoId)
    {
        return flightOrderCashInfoMapper.deleteFlightOrderCashInfoById(cashinfoId);
    }
}
